JC=	javac
JAR=	jar
.PHOMY:	all
all:	binning.jar extract_cigar_info.jar getgap.jar greedy.jar

rebuild:	clean

%.class:	%.java
	${JC} $<
binning.jar:	binning.class bin.class
	${JAR} cfe binning.jar binning binning.class bin.class
extract_cigar_info.jar:	extract_cigar_info.class
	${JAR} cfe extract_cigar_info.jar extract_cigar_info extract_cigar_info.class
getgap.jar:	getgap.class
	${JAR} cfe getgap.jar getgap getgap.class
greedy.jar:	greedy.class block.class
	${JAR} cfe greedy.jar greedy greedy.class block.class

clean:
	rm -rf *.class \
	rm -rf *.jar
